




/*
*************************************************************************
*西瑞克斯研发管理系统
*版 本: 1.0   
*日 期：02/08/2012    
*作 者： 王浩 QQ：873987060   
*************************************************************************   
*/ 
package com.application.yfthesis.service;
import java.util.List;
import com.manager.BaseService;
import com.manager.commons.page.PageBean;
import com.application.yfthesis.entity.YfThesis;
import com.application.yfthesis.struts.form.YfThesisForm;
import com.application.yfthesis.dao.YfThesisDAO;
 /**
 * 
 * Description:YfThesisService<br />
 * 
 * Version:V0.1<br />
 * 
 * Author: 王浩 QQ：873987060  <br />
 * 
 * History: <br />
 * 
 * 02/08/2012 
 * 
 */
public class YfThesisService extends BaseService
{
	private YfThesisDAO yfThesisDAO;

	public YfThesisDAO getYfThesisDAO() {
		return this.yfThesisDAO;
	}

	public void setYfThesisDAO(YfThesisDAO yfThesisDAO) {
		this.yfThesisDAO = yfThesisDAO;
	}
        

        public YfThesis getYfThesis(YfThesis yfThesis) {
		return (YfThesis) this.getBaseDao().queryByPk(yfThesis, yfThesis.getId());
	}
	
	public Integer getAllCountYfThesis(YfThesisForm yfThesisForm){
		return this.yfThesisDAO.getAllCountYfThesis(yfThesisForm);
	}
	
	public List<YfThesis> searchYfThesis(YfThesisForm yfThesisForm, PageBean pageBean) throws Exception {
		List<YfThesis> yfThesisList = (List) this.yfThesisDAO.searchYfThesis(yfThesisForm, pageBean);
		return yfThesisList;
	}
        
        public void deleteYfThesiss(YfThesisForm yfThesisForm){
	   this.yfThesisDAO.deleteYfThesiss(yfThesisForm);	 
	}
 
}
